import request from '@/utils/request'

// 删除投标补偿金数据
export function deleteTenderCompensation(params) {
  return request({
    url: '/tenderCompensation/delete',
    method: 'POST',
    params
  })
}

// 查询投标项目名称
export function selectProjectName(params) {
  return request({
    url: '/tenderCompensation/projectName',
    method: 'POST',
    params
  })
}

// 添加投标补偿金
export function addTenderCompensation(data) {
  return request({
    url: '/tenderCompensation/add',
    method: 'POST',
    data
  })
}

// 投标补偿金搜索，分页
export function getTenderCompensationList(params) {
  return request({
    url: '/tenderCompensation/list',
    method: 'post',
    params
  })
}

// 查询团队名称
export function selectTeam(params) {
  return request({
    url: '/employeePay/team',
    method: 'POST',
    params
  })
}

// 查询投标补偿金单条数据
export function selectTenderCompensation(params) {
  return request({
    url: '/tenderCompensation/load',
    method: 'POST',
    params
  })
}

// 修改投标补偿金
export function updateTenderCompensation(data) {
  return request({
    url: '/tenderCompensation/update',
    method: 'POST',
    data
  })
}

// 修改投标补偿金支出
export function updateCost(data) {
  return request({
    url: '/tenderCompensation/updateCost',
    method: 'POST',
    data
  })
}

// 查詢收款人（也就是经办人）
export function selectOperator(params) {
  return request({
    url: '/tenderCompensation/operator',
    method: 'POST',
    params
  })
}

// 删除支出投标补偿金数据
export function deleteCost(data) {
  return request({
    url: '/tenderCompensation/deleteCost',
    method: 'POST',
    data
  })
}

